<%--
  Created by IntelliJ IDEA.
  User: 14408
  Date: 2022/1/10
  Time: 12:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>用户遍历页面</title>
    <style>
        table,tr,th,td{
            border: 1px black solid;
        }
    </style>
</head>
<body>
    <div >
        <table >
            <tr>
                <th>id</th>
                <th>姓名</th>
                <th>密码</th>
                <th>年龄</th>
            </tr>
            <C:forEach items="${list}" var="user">
                <tr>
                    <td>${user.id}</td>
                    <td>${user.name}</td>
                    <td>${user.password}</td>
                    <td>${user.age}</td>
                </tr>
            </C:forEach>

        </table>
    </div>

</body>
</html>
